<template>
    <div id="nav">
      <div class="w1200">
        <div id="masthead" class="clearfix">
          <div class="header_logo fl">
            <a target="_self" title="培训通" href="">
              <img src="https://static.pxto.com.cn/statics/Home/images/logo.png"></a>
            <div class="f12 gray2 tc mt5">为 您 创 造 可 能</div>
          </div>
          <div class="index_address"><em class="orange f15 mr10">嘉兴</em><a href="" class=" alter gray2 f12">切换</a>
          </div>
          <div>
            <div class="map_submit_div2"><a href="" class="map_submit2">问老师</a></div>
            <div class="ali-search fr">
              <form >
                <div class="alisearch">
                  <a href="javascript:;" class="class search-option" id="j_search" >机构</a><span></span>
                  <a href="javascript:;" class="search-option" >课程</a>
                </div>
                <div class="clear"></div>
                <div class="form">
                  <input value="21" type="hidden" name="cityid">
                  <input id="alisearch-keywords" value="" class="search_txt" accesskey="s" autocomplete="off" maxlength="50" name="keyword" placeholder="输入机构或培训项目关键字，如“优路教育”“英语”">
                  <button type="submit" id="alisearch-submit">搜 索</button>
                </div>
              </form>
            </div>
            <div class="clear"></div>
          </div>
        </div>
        <div class="clear"></div>
        <!--导航 end-->
        <div class="clear"></div>
      </div>
      <div style="width: 100%;height: 40px;background-color: #ff7300">
        <div class="nav" style="width: 1200px;height: 40px;margin: auto">

          <div class="nav_list" style="margin-left: 120px">
            <span style="margin-left: 23px"><router-link class="to_l" :to="{name:'Index'}"> 首页 </router-link></span>
          </div>
          <div class="nav_list">
            <span><router-link class="to_l" :to="{name:'Course'}"> 培训课程 </router-link></span>
          </div>
          <div class="nav_list">
            <span><router-link class="to_l" :to="{name:'School'}"> 培训机构 </router-link></span>
          </div>
          <div class="nav_list">
            <span><router-link class="to_l" :to="{name:'Dynamic'}"> 培训动态 </router-link></span>
          </div>
          <div class="nav_list">
            <span><router-link class="to_l" :to="{name:'News'}"> 最新资讯 </router-link></span>
          </div>
          <div class="nav_list">
            <span @click="about()">关于我们</span>
          </div>


        </div>
      </div>
    </div>
</template>

<script>
    export default {
        name: "nav",
      methods:{
          about(){
            alert("未开发，敬请期待！")
          }
      }
    }
</script>

<style scoped>
  .nav_list{
    float: left;
    height: 30px;
    color: white;
    font-size: 15px;
    margin-left: 80px;
    margin-top: 5px;
    padding-top: 5px;
    width: 80px;
  }
  .nav_list span{
    margin-left: 10px;
  }
  .nav_list:hover{
    background-color: white;
    color: orange;
  }
  .to_l{
    color: white;
  }
  .to_l:hover{
    color: orange;
  }

  .w1200 {
    width: 1200px;
    margin: 0 auto;
  }

  #masthead {
    position: relative;
    height: 70px;
    margin: 0px 0 23px 0;
    padding-top: 16px;
  }
  .clearfix {
    zoom: 1;
  }

  .fl {
    float: left;
  }

  .header_logo {
    padding-top: 2px;
    width: 214px;
    height: 56px;
  }

  body a {
    outline: none;
  }

  a {
    text-decoration: none;
    color: #666666;
  }

  .header_logo img {
    width: 214px;
    height: 56px;
  }
  a img, img {
    border: 0;
  }
  img {
    max-width: 100%;
  }

  .tc {
    text-align: center;
  }

  .f12 {
    font-size: 12px;
  }

  .index_address {
    padding: 0 10px 0 25px;
    background-image: url(../assets/address.png);
    height: 30px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 7px center;
    float: left;
    margin: 25px 0px 0 30px;
    max-width: 100px;
    line-height: 30px;
    position: relative;
  }

  .mr10 {
    margin-right: 10px;
  }
  .f15 {
    font-size: 15px;
    font-family: 微软雅黑;
  }
  .orange, a.orange {
    color: #FF7300 !important;
  }

  .gray2, a.gray2 {
    color: #A9A9A9 !important;
  }
  .f12 {
    font-size: 12px;
  }
  .f12 {
    font-family: 微软雅黑;
  }

  .map_submit_div2 {
    width: 82px;
    float: right;
    height: 40px;
    background: #fff;
    margin: 28px 80px 0px 10px;
  }

  .map_submit_div2 .map_submit2 {
    height: 38px;
    width: 80px;
    border: 1px solid #ddd;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font: normal 14px/38px 微软雅黑;
    color: #666;
  }

  .ali-search {
    width: 505px;
    float: right;
    margin-top: 0px;
  }

  #masthead .alisearch {
    font: normal 15px/24px 微软雅黑;
    margin: 2px 0;
    height: 24px;
  }

  #masthead .alisearch a.class {
    color: #FF7300;
  }

  #masthead .alisearch span {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #DDDDDD;
    margin: 0px 15px;
  }

  #masthead .alisearch a {
    color: #666666;
  }

  .clear {
    clear: both;
  }

  .form {
    width: 505px;
    position: relative;
    background: #ddd;
    height: 40px;
  }

  input, input:focus, button, button:focus, select, textarea, textarea:focus, select:focus {
    outline: medium none;
  }
  input {
    font-family: "Microsoft Yahei","微软雅黑";
    display: inline-block;
    vertical-align: middle;
  }

  .search_txt {
    width: 392px;
    height: 34px;
    background: #fff;
    padding-left: 10px;
    margin: 2px 0 2px 2px;
  }

  #masthead .ali-search #alisearch-submit {
    display: block;
    height: 40px;
    width: 100px;
    background-color: #FF7300;
    line-height: 40px;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    font-family: "Microsoft YaHei";
  }
  input, input:focus, button, button:focus, select, textarea, textarea:focus, select:focus {
    outline: medium none;
  }
</style>
